package com.xuecheng.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.api.content.model.dto.TeachplanDTO;
import com.xuecheng.api.media.model.dto.TeachplanMediaDTO;
import com.xuecheng.content.entity.Teachplan;
import org.springframework.stereotype.Service;


/**
 * 课程计划操作
 */
@Service
public interface TeachplanService extends IService<Teachplan> {


    /**
     * 根据课程id查询课程计划树形结构数据
     * @param courseId 课程id
     * @param companyId 教育机构id
     * @return
     */
    TeachplanDTO queryTeachplan(Long courseId,Long companyId);


    /**
     * 创建或修改课程计划
     * @param teachplanDTO
     * @param companyId
     * @return
     */
    TeachplanDTO createdOrModifyTeachplan(TeachplanDTO teachplanDTO,Long companyId);


    /**
     * 课程计划绑定媒资信息
     * @param dto
     * @param companyId
     * @return
     */
    TeachplanMediaDTO associateMedia(TeachplanMediaDTO dto, Long companyId);
}
